package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_fanxiu_spring_draw", desc = "凡人迎新春-抽奖", autoSave = true, dataUpload = true, eventName = "fanxiu_draw", uploadCk = true)
public class LogFanXiuSpringDraw extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "轮次，初始1", dataAttribute = "draw_round")
    private int round;

    @FieldTypeAnnotation(desc = "当前轮次， 总抽奖次数", dataAttribute = "draw_roundnum")
    private int drawTimes;

    @FieldTypeAnnotation(desc = "抽奖次数", dataAttribute = "draw_time")
    private int times;

    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "draw_get")
    private String reward;

    @FieldTypeAnnotation(desc = "是否大奖", dataAttribute = "draw_isbig")
    private boolean bigReward;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogFanXiuSpringDraw(int activityId, long userId, int round, int drawTimes, int times, String reward, boolean bigReward) {
        this.activityId = activityId;
        this.userId = userId;
        this.round = round;
        this.drawTimes = drawTimes;
        this.times = times;
        this.reward = reward;
        this.bigReward = bigReward;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public int getDrawTimes() {
        return drawTimes;
    }

    public void setDrawTimes(int drawTimes) {
        this.drawTimes = drawTimes;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public boolean isBigReward() {
        return bigReward;
    }

    public void setBigReward(boolean bigReward) {
        this.bigReward = bigReward;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
